// 判断一个数是不是素数

const num1 = 17
const num2 = 18

function judge(num) {
    for (let i = 2; i < Math.ceil(Math.sqrt(num)); i++) {
        if (num % i === 0) return true
    }
    return false
}

console.log(judge(num1));
console.log(judge(num2));
